package com.poizon.config;

/**
 * @ClassName SystemConfig
 * @Author NoCheng
 * @Date 2022/1/2 9:40
 * @Description:TODO 项目所用到的常量
 */

public class SystemConfig {
    //阿里云账号的key和密钥
    public static final String ALI_KEY = "LTAI5tKz7sP4xaaRsTuxoTjx";
    public static final String ALI_SEC = "mFCyf0QxVmB6kGAacAxdtMqmQwcRIx";

    //阿里云短信模板
    public static final String SMS_LOGIN_CODE_MOULD = "SMS_115250125";//登录
    public static final String SMS_FIND_CODE_MOULD = "SMS_181545700";//密码找回

    //验证码的长度
    public static final int CODE_LEN = 6;

    //接口统一结果码
    public static final int R_OK = 200;
    public static final int R_FAIL = 400;


    //正则表达式
    //手机号
    public static final String REG_PHONE = "1[3-9]{1}[0-9]{9}";
    //六位验证码
    public static final String REG_CODE = "[0-9]{6}";
    //货号
    public static final String REG_ITEM_CODE = "[A-Z]{4}-[0-9]{4}";


    //密码加密的密钥
    public static final String PASS_KEY = "RAHW4pSvPJKOpuGGdbU+pw==";

    //Redis 存储手机验证码
    //有效期
    public static final int SMS_CODE_TIME = 600;
    //验证码前缀
    public static final String SMS_LOGIN_CODE = "poizon:sms:loginCode:";
    public static final String SMS_FIND_CODE = "poizon:sms:findCode:";

    //动态的点赞初始值
    public static final Integer INITIAL_VALUE = 0;
    //表中软删除标记
    public static final Integer INVALID = 0;
    public static final Integer EFFECTIVE = 1;
    //默认头像
    public static final String DEFAULT_PICTURE = "http://data2112.oss-cn-beijing.aliyuncs.com/a1e93b598cab456c9f771463c69a2e3cdefaultface.jpg?Expires=1643197819&OSSAccessKeyId=LTAI5tKz7sP4xaaRsTuxoTjx&Signature=DUd3wxNo7k%2BWQikkwnYITrpMMMQ%3D";
}
